﻿/*
* 作者:haojielyb
* 邮箱:haojielyb@qq.com
*/


using SixLabors.ImageSharp;
using System;


namespace FaceMqttClient
{
    public class OthTool
    {
        public static void Base64StringToImage(string base64Img, string imgPath)
        {
            byte[] bytes = Convert.FromBase64String(base64Img);
           
         

                using (var image = Image.Load(bytes))
                {

                    image.SaveAsJpeg(imgPath);//.Save(outputStream, format);
                }
          
           
        }
    }
}